package com.itheima.day04_interface.develophomework.test01;

public class Test {
    public static void main(String[] args) {
        Person p = new Person("老王",30);
        Animal a = new Dog(2,"黑颜色");
        p.keepPet(a,"骨头");
        Animal b = new Cat(3,"灰颜色");
        p.keepPet(b,"鱼");
    }
}
